import QtQuick
import QtQuick.Controls
import Tool 1.0
Item {
    // anchors.fill: parent
    ScrollView{
        anchors.fill: parent
        Rectangle{
            anchors.fill: parent
            Column{
                spacing:5
                anchors.fill: parent
                Rectangle{
                    width: parent.width
                    height: 5
                }
                Rectangle{
                    width:parent.width
                    height: parent.height*0.3
                    anchors.horizontalCenter: parent.horizontalCenter
                    // color: "red"
                    Rectangle{
                        // anchors.horizontalCenter: parent.horizontalCenter
                        anchors.horizontalCenter: parent.horizontalCenter

                        height: parent.height
                        width: height
                        color: color_MaterialBlue
                        radius: width
                        Text{
                            anchors.centerIn: parent
                            text:Tool.name
                            font.pixelSize: 60
                            color:"white"
                        }

                    }
                }

                Rectangle{
                    width: parent.width
                    height: parent.height*0.05
                    anchors.horizontalCenter: parent.horizontalCenter
                    Row{
                        spacing: 10
                        // anchors.centerIn: parent
                        anchors.horizontalCenter: parent.horizontalCenter
                        // anchors.fill: parent
                        width: parent.width*0.7
                        height: parent.height
                        Text{
                            height: parent.height
                            width: parent.width/5
                            text: "Vip:"
                            font.pointSize: 13
                            verticalAlignment: Text.AlignVCenter
                            horizontalAlignment: Text.AlignHCenter
                        }
                        Rectangle{
                            height:parent.height
                           width: parent.width/5*4
                            border.width: 3
                            border.color: color_MaterialBlue
                            Text{
                                width: parent.width-6
                                height: parent.height-6
                                anchors.centerIn: parent
                                text:Tool.vip
                                font.pixelSize: 20
                            }


                        }


                    }


                }
                Rectangle{
                    width: parent.width
                    height: parent.height*0.05
                    anchors.horizontalCenter: parent.horizontalCenter
                    Row{
                        spacing: 10
                        // anchors.centerIn: parent
                        anchors.horizontalCenter: parent.horizontalCenter
                        // anchors.fill: parent
                        width: parent.width*0.7
                        height: parent.height
                        Text{
                            height: parent.height
                            width: parent.width/5
                            text: "name:"
                            font.pointSize: 13
                            verticalAlignment: Text.AlignVCenter
                            horizontalAlignment: Text.AlignHCenter
                        }
                        Rectangle{
                            height:parent.height
                           width: parent.width/5*4
                            border.width: 3
                            border.color: color_MaterialBlue
                            Text{
                                width: parent.width-6
                                height: parent.height-6
                                anchors.centerIn: parent
                                text:Tool.name
                                font.pixelSize: 20
                            }


                        }


                    }


                }
                Rectangle{
                    width: parent.width
                    height: parent.height*0.05
                    anchors.horizontalCenter: parent.horizontalCenter
                    Row{
                        spacing: 10
                        // anchors.centerIn: parent
                        anchors.horizontalCenter: parent.horizontalCenter
                        // anchors.fill: parent
                        width: parent.width*0.7
                        height: parent.height
                        Text{
                            height: parent.height
                            width: parent.width/5
                            text: "id:"
                            font.pointSize: 13
                            verticalAlignment: Text.AlignVCenter
                            horizontalAlignment: Text.AlignHCenter
                        }
                        Rectangle{
                            height:parent.height
                           width: parent.width/5*4
                            border.width: 3
                            border.color: color_MaterialBlue
                            Text{
                                width: parent.width-6
                                height: parent.height-6
                                anchors.centerIn: parent
                                text:Tool.id
                                font.pixelSize: 20
                            }


                        }


                    }


                }






            }



        }


    }



}
